<?php
include '../connect/common_start.php';
if(isset($_REQUEST['user']))
{
	$user=$_REQUEST['user'];
	//echo  $user;
	if(isset($_REQUEST['passOld']))
	{
		$passOld=$_REQUEST['passOld'];
		//echo  $passOld;
		if(isset($_REQUEST['passNew']))
		{
			//echo $passNew;
			$passNew=$_REQUEST['passNew'];
			$result=mysql_query("UPDATE member SET mem_pswd='$passNew' WHERE (mem_id='$user' AND mem_pswd='$passOld' AND status='1')");
			echo mysql_affected_rows();
		}
	}
}
include '../connect/common_end.php';
?>
